
import Mixins from '@/views/mixins'
import employee from '@/api/system/employeeAPI'
import dempartment from '@/api/system/dempartmentAPI'
export default {
  mixins: [Mixins],
  methods: {
    getRequestType (opt) {
      if (this.id === 'employee_dept') {
        if (opt === 'deleteDepartment') {
          return dempartment.deleteDepartmentAPI
        }
        return employee.getEmployeeListAPI
      } else {
        if (opt === 'statisticsEmployeeCount') {
          return employee.statisticsEmployeeCountAPI
        }
      }
    }
  }
}
